﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <title>Demo</title>
    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#aClickMe").on("click", function () {
                $("#divAdDesplay1").fadeToggle(800);
            }).animate({
                left: '+=50', // increase by 50
                opacity: 0.25,
                fontSize: '12px'
            },
                300,
                function () {
                    //  alert("END");
                    // executes when the animation is done
                }
            );
            // 百度地图API功能
            var map = new BMap.Map("allmap");
            map.centerAndZoom("泰州", 13);
            //map.centerAndZoom(new BMap.Point(121.484, 31.225), 11);
            function showInfo(e) {
                alert(e.point.lng + ", " + e.point.lat);
            }
            map.addEventListener("click", showInfo);
            map.enableScrollWheelZoom(true);
        });
    </script>
    <style type="text/css">
        body, html, #allmap
        {
            width: 100%;
            height: 100%;
            overflow: hidden;
            margin: 0;
        }
    </style>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=2E28FD2f3e759b9077f2e84912b9d94d"></script>
</head>
<body>
    <a href="javascript:void(0)" id="aClickMe">点击ME</a>
    <div id="divAdDesplay1">
        显示或者隐藏操作
            @ViewBag.Result
    </div>
    <div id="allmap"></div>

</body>
</html>
